<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="box"></div>
    <script src="./socket.io.js"></script>
    <script type="text/javascript">
          const oBox = document.getElementById('box')
      window.onload = function() {
        var socket = io.connect('http://127.0.0.1:8066')
        socket.on('hello', (message) => {
          oBox.innerHTML += message.name + '</br>'
        })
      }
    </script>
  </body>
</html>
